<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="StyleSheet" href="../css/jpetstore.css" type="text/css" media="screen"/>
</head>
<body>
    <header th:fragment="header">
        <div id="Header">

            <div id="Logo">
                <div id="LogoContent">
                    <a href="main"><img src="../images/logo-topbar.gif" /></a>
                </div>
            </div>

            <div id="Menu">
                <div id="MenuContent">
                    <a href="viewCart"><img align="middle" name="img_cart" src="../images/cart.gif" /></a>
                    <img align="middle" src="../images/separator.gif" />
                    <c:if test="${sessionScope.account == null}">
                        <a href="signOnForm">Sign In</a>
                    </c:if>
                    <c:if test="${sessionScope.account != null}">
                        <a href="signOff">Sign Out</a>
                    </c:if>

                    <c:if test="${sessionScope.account != null}">
                        <img align="middle" src="../images/separator.gif" />
                        <a href="editAccount" id="MyAccount" name="MyAccount">${sessionScope.account.username}</a>
                    </c:if>
                    <img align="middle" src="../images/separator.gif" />
                    <!--暂未提供-->
                    <a href="../help.html">?</a>
                </div>
            </div>

            <div id="Search">
                <div id="SearchContent">
                    <form action="searchProduct" method="post">
                        <input type="text" name="keyword" id="keyword" class="inputtable" size="14" />
                        <input type="submit" name="searchProducts" value="Search" />
                        <div id="context1" style="background-color:white;
                                          border: 1px solid rgba(0%,0%,0%,0.5);
                                          background-color: rgba(75,75,91,0.68);
                                          width:125px;
                                          position: relative;
                                          top: -28px;
                                          left:132px;
                                          display:none" >
                        </div>

                    </form>
                </div>
            </div>

            <div id="QuickLinks">
                <a href="viewCategory?categoryId=FISH">
                    <img src="../images/sm_fish.gif" />
                </a>
                <img src="../images/separator.gif" />
                <a href="viewCategory?categoryId=DOGS">
                    <img src="../images/sm_dogs.gif" />
                </a>
                <img src="../images/separator.gif" />
                <a href="viewCategory?categoryId=REPTILES">
                    <img src="../images/sm_reptiles.gif" />
                </a>
                <img src="../images/separator.gif" />
                <a href="viewCategory?categoryId=CATS">
                    <img src="../images/sm_cats.gif" />
                </a>
                <img src="../images/separator.gif" />
                <a href="viewCategory?categoryId=BIRDS">
                    <img src="../images/sm_birds.gif" />
                </a>
            </div>

        </div>
    </header>
</body>
</html>